package com.yx.fx.my.controller;

import com.yx.fx.my.entity.BankEmp;
import com.yx.fx.my.params.BankEmpParams;
import com.yx.fx.my.service.BankEmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/bank/emp")
public class BankEmpController {

    @Autowired
    private BankEmpService empService;

    @GetMapping("/getList/{empName}")
    public List<BankEmp> getEmpList(@PathVariable String empName) {

        return empService.getEmpListLikeName(empName);

    }
}
